package flst.ipiweb.common;

import java.util.ArrayList;
import java.util.List;
import java.util.Random;

public class Shop {
	private int id;
	private String name;
	private List<PromotionalCode> promotionalCodesList;

	public Shop() {
		this.promotionalCodesList = new ArrayList<PromotionalCode>();
		Random r = new Random();
		this.setId(r.nextInt(Integer.MAX_VALUE));
	}

	public Shop(int id) {
		super();
		this.setId(id);
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public List<PromotionalCode> getPromotionalCodesList() {
		return promotionalCodesList;
	}

	public void setPromotionalCodesList(
			List<PromotionalCode> promotionalCodesList) {
		this.promotionalCodesList = promotionalCodesList;
	}

}
